package com.mall.order;

import com.mall.order.dto.CreateOrderRequest;
import com.mall.order.dto.CreateOrderResponse;

/**
 * 订单相关业务
 */
public interface OrderCoreService {

    /**
     * 创建订单
     * @param request
     * @return
     */
    CreateOrderResponse createOrder(CreateOrderRequest request);

    /***
     *
     * @param orderID:订单ID
     * @param b:订单的是否支付成功
     */
    void changeOrderStatus(String orderID, boolean b);
}
